#include "pauseClueCardMessage.h"

PauseClueCardMessage::PauseClueCardMessage(MtpProtocol* packet) : MtpMessage(packet)
{

}

PauseClueCardMessage::PauseClueCardMessage(const int64_t& clueCardId, const int& channel) : MtpMessage(new MtpProtocol(L"pauseClueCard")), param(clueCardId, channel)
{

}

void PauseClueCardMessage::decodeBody()
{
	MtpMessage::decodeBody();
	param.jsonDeserialize(jsonContent);
}

void PauseClueCardMessage::encodeBody()
{
	jsonContent = param.jsonStr();
	MtpMessage::encodeBody();
}

const ClueCardParam& PauseClueCardMessage::getParam()
{
	return param;
}
